package com.yuanlrc.school.service.impl;


import com.yuanlrc.school.entity.DebateDB;
import com.yuanlrc.school.mapper.DebateMapper;
import com.yuanlrc.school.service.DebateService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class DebateServiceImpl implements DebateService {
    @Resource
    private DebateMapper debateDBMapper;

    @Override
    public List<DebateDB> findAllDebate(DebateDB debateDB) {
        return debateDBMapper.findAllDebate(debateDB);
    }

    @Override
    public int deleteDebate(Integer deId) {
        return debateDBMapper.deleteDebate(deId);
    }

    @Override
    public int addDebate(DebateDB debateDB) {
        return debateDBMapper.addDebate(debateDB);
    }

    @Override
    public int editDebate(DebateDB debateDB) {
        return debateDBMapper.editDebate(debateDB);
    }
}
